import Vue from 'vue'
import VueRouter from 'vue-router'

import RouterFind from '@/views/RouterFind.vue'
import RouterLast from '@/views/RouterLast.vue'
import RouterLogin from '@/views/RouterLogin.vue'
import RouterMast from '@/views/RouterMast.vue'
import Buy from '@/views/Buy.vue'
import Music from '@/views/Music.vue'
Vue.use(VueRouter)

const router = new VueRouter({
  // mode: history,
  routes: [
    {
      path: '/find',
      component: Buy,
    },
    {
      path: '/my',
      component: Music,
    },
    {
      path: '/part',
      component: RouterFind,
    },
    {
      path: '/dest',
      component: RouterLast,
    },
    {
      path: '/music',
      component: RouterLogin,
    },
    {
      path: '/buy',
      component: RouterMast,
    },
  ],
})

export default router
